Designing a Chart
Designing a chart can be as simple as calling two subroutines - one to initialize a new chart specification (.CHART INITIALIZE) and one to render the chart (.CHART RENDER). The following example illustrates the ILF statements needed to initialize and render a default pie chart (/tmp/piechart.png) using a previously defined dataset consisting of seven data values
Also notice the use of SUBR instead of GOSUB to call the chart rendering subroutine. This is a large process and compile times/sizes will be reduced if you call it as a separate process instead of including it in your process with a GOSUB.
|